from pydantic import BaseSettings


class Settings(BaseSettings):
    PROJECT_NAME: str = "Integrated Trouble Tracking System"
    PROJECT_VERSION: str = "1.0.0"
    PROJECT_DESCRIPTION: str = "专为软硬件研发一体企业设计的问题跟踪系统"
    
    # 数据库配置
    DATABASE_URL: str = "postgresql://its_user:its_password@localhost:5432/its_db"
    
    # JWT配置
    SECRET_KEY: str = "your-secret-key-here"
    ALGORITHM: str = "HS256"
    ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
    
    # Elasticsearch配置
    ELASTICSEARCH_HOST: str = "localhost"
    ELASTICSEARCH_PORT: int = 9200
    
    class Config:
        env_file = ".env"


settings = Settings()